package com.apply.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.apply.dao.recordApplyDao;
import com.apply.entity.Page;
import com.apply.entity.campus;
import com.apply.entity.recordApply;
import com.apply.service.RecordApplyService;


@Service
public class RecordApplyServiceImpl implements RecordApplyService{

	@Autowired
	private recordApplyDao rd;
	
	@Override
	public int addRecordApply(recordApply recordapply) {
		// TODO Auto-generated method stub
		return rd.addRecorApply(recordapply);
	}

	@Override
	public List<recordApply> getRecordApplies(int teacherId,Integer status,Page page) {
		// TODO Auto-generated method stub
		return rd.getRecordApplies(teacherId,status,page);
	}

	@Override
	public int recordCount(int teacherId,Integer status) {
		// TODO Auto-generated method stub
		return rd.recordCount(teacherId,status);
	}

	@Override
	public void setRecordStatus(int recordId, int statusId,String remark) {
		// TODO Auto-generated method stub
		rd.setRecordStatus(recordId, statusId,remark);
		
	}


	@Override
	public List<recordApply> getOneselfHistoryRecord(int teacherId,Integer status, Page page) {
		// TODO Auto-generated method stub
		return rd.getOneselfHistoryRecord(teacherId,status, page);
	}

	@Override
	public int getOneselfHistoryRecordCount(int teacherId,Integer status) {
		// TODO Auto-generated method stub
		return rd.getOneselfHistoryRecordCount(teacherId,status);
	}

	@Override
	public List<recordApply> getDepartmentHistoryRecord(int departmentid,
			int campusid, Page page,Integer status) {
		// TODO Auto-generated method stub
		return rd.getDepartmentHistoryRecord(departmentid, campusid, page,status);
	}

	@Override
	public int getDepartmentHistoryRecordCount(int departmentid,
			int campusid,Integer status) {
		// TODO Auto-generated method stub
		return rd.getDepartmentHistoryRecordCount(departmentid, campusid,status);
	}

	@Override
	public List<campus> statistics() {
		// TODO Auto-generated method stub
		return rd.statistics();
	}

	@Override
	public List zxsStatistics() {
		// TODO Auto-generated method stub
		return rd.zxsStatistics();
	}

	@Override
	public List<recordApply> getOneRecor(String xinxi) {
		// TODO Auto-generated method stub
		return rd.getOneRecor(xinxi);
	}

	@Override
	public recordApply sfcz(String idCard) {
		// TODO Auto-generated method stub
		return rd.sfcz(idCard);
	}

	@Override
	public void xgdz(recordApply rec) {
		// TODO Auto-generated method stub
		rd.xgdz(rec);
	}

}
